home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / sortf21.arc / SORTF21.DOC next >
Encoding:
Text File  |  1985-08-03  |  2.5 KB  |  66 lines

  1.  
  2. SORTF Command
  3. -------------
  4.  
  5. Purpose:   This command reads data from an ASCII file, sorts the
  6.            records, and writes the data to another file.
  7.  
  8. Format:    SORTF [d:][path]fname[.ext] [d:][path]fname[.ext] [/R][/+nnn]
  9.  
  10. Remarks:   Records read from the input file ending with a carriage
  11.            return and line feed are considered logical records and may
  12.            be up to 256 characters in length.
  13.  
  14.            The records are sorted into ascending ASCII character order
  15.            unless /R is supplied to reverse the order.
  16.  
  17.            The key is taken from the first character position, unless
  18.            the /+ operand is used to specify the location of the key
  19.            within the records. The position may be a value from one
  20.            to 255. The first 12 characters at that position are used
  21.            as the record key.
  22.  
  23.            For example, to sort a file in descending order with the
  24.            keys in position 10:
  25.  
  26.                 SORTF TEST.DAT TEST.SRT /R/+10
  27.  
  28.            Depending on the amount of memory available, up to 40000
  29.            records, or a file up to 16-Mb, may be sorted.
  30.  
  31.            The advantages of using SORTF instead of the SORT filter are:
  32.                 - files larger than 63K may be sorted
  33.                 - less time is required
  34.  
  35.            For best results, place the input file on the fastest
  36.            available drive, e.g. RAM disk.
  37.  
  38. Notes:
  39.         Written by Vernon Buerg for the  IBM PC using DOS 2.0 and  is
  40.         supplied for public domain  use. All rights reserved.
  41.  
  42.         Not for sale or hire. Commercial use is prohibited. This means
  43.         that no fee may be charged for any copies.  Nor may SORTF be
  44.         included (or bundled) with other goods or services. Exceptions
  45.         may be granted upon written request only.
  46.  
  47.         For use by corporations and other institutions, contact
  48.         AAI Systems for a licensing agreement.
  49.  
  50.                 AAI Systems, Inc.
  51.                 c/o Vernon D. Buerg
  52.                 456 Lakeshire Drive
  53.                 Daly City, CA 94015
  54.                 Data: (415) 994-2944, 2am-10am PDT
  55.                 CompuServe: 70007,1212
  56.  
  57.  
  58.            Version 2.0, July 11, 1985.
  59.                Corrects CR/LF problem. Remember, it is assumed that
  60.                all "records" end in a carriage return (CR). Those
  61.                that do not may appear as part of other records to
  62.                your text editor.
  63.            Version 2.1, August 3, 1985
  64.                Corrects a problem sorting files larger than 64K.
  65.  
  66.